const fs = require('fs')
fs.writeFile('./c.txt', 'ccc', (err) => {

  if (err) {
    return console.log('文件写入失败', err.message)
  }
  console.log('写入成功')
})